package com.llxz.blog.article.repository;

import com.llxz.blog.article.entity.Label;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.repository.MongoRepository;

@Document(collection="label")
public interface LabelRepository extends MongoRepository<Label, String> {
    Label getByLabel(String label);
    void removeByLabel(String label);
}
